/**
 * 
 */
package com.google.nk.dictionary;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;

/**
 * @author Duy Kien Ngo
 *
 */
public class History_Fragment extends Fragment{
	//private TextView text;
	private ListView listView;
	static final String[] listItems = new String[] { "Items1", "Items2", "Items3" };
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View v = LayoutInflater.from(getActivity()).inflate(R.layout.history_frag,
				null);
		/*text = (TextView) v.findViewById(R.id.textView);
		text.setText("History Screen");*/
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(),
				android.R.layout.simple_list_item_1, listItems);
		listView = (ListView) v.findViewById(R.id.listH);
		listView.setAdapter(adapter);
		// TODO Auto-generated method stub
		return v;
	}
}
